﻿using SqlSugar;

namespace DeZhen.DataCollection.Model.DTO.DataSourceSettings
{
    /// <summary>
    /// 数据源设置DTO对象
    /// </summary>
    public class DataSourceSettingsDTO
    {
        /// <summary>
        /// ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 数据源名称
        /// </summary>
        public string? SourceName { get; set; }

        /// <summary>
        /// 数据源类型
        /// </summary>
        public DbType SourceType { get; set; }

        /// <summary>
        /// 数据源类型名称
        /// </summary>
        public string? SourceTypeName { get; set; }

        /// <summary>
        /// 数据库地址
        /// </summary>
        public string? DatabaseUrl { get; set; }

        /// <summary>
        /// 数据库端口
        /// </summary>
        public int? Port { get; set; }

        /// <summary>
        /// 数据库名称
        /// </summary>
        public string? DatabaseName { get; set; }

        /// <summary>
        /// 登录名
        /// </summary>
        public string? LoginUser { get; set; }

        /// <summary>
        /// 登录密码
        /// </summary>
        public string? LoginPassword { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public DateTime? CreateTime { get; set; }
    }
}
